<?php
class GraphsController extends AppController {
	
	var $name = 'Graphs';
	var $uses = array ();
	 var $helpers = array('Graph');
	
	function beforeFilter() {
		parent::beforeFilter ();
		$this->Auth->allow ( '*' );
	}
	
	function example1() {
		$this->layout = null;
        $this->autoLayout = false;
        Configure::write('debug', 2);
        
        $chartData = array ('apples' => 3, 'pears' => 4, 'oranges' => 1, 'peaches' => 2);
        $chartTitle = 'Fruit Totals';
        $this->set(compact('chartTitle', 'chartData'));
	}

}